﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ContactsForm
{
    public class genericform : Form
    {
        // Setup common variables you need here for
        // the dataset or datatable

        protected DataSet dscont;
        protected BindingSource compbs;
        protected int contact_id;
        protected DataGridViewRow temprow;
        protected DataGridViewRow getdatarow()
        {
            //return your edited row here
            return temprow;
        }
        #region constructors
        protected genericform(DataSet contacts, BindingSource contactsbs, int position, string table)
        {

            dscont = contacts;
            contact_id = position;
            compbs = contactsbs;

            // add code here to find your contact
        }

        protected genericform(DataSet contacts, BindingSource contactsbs, string table)
        {
            dscont = contacts;
            compbs = contactsbs;



        }

        protected genericform()
        {
        }
        
        
        
        #endregion
    }
}
